@extends('layout.master')

@section('content')
@foreach ($data as $val)
   <div class="panel panel-default">
  <div class="panel-body">
    {{$val->title}}
    <a href="/Admin/{{$val->id}}" class="btn btn-info">阅读</a>
    <a href="/Admin/{{$val->id}}/edit" class="btn btn-info">修改</a>
		
      <form action="/Admin/{{$val->id}}" method="post" style="display: inline-block;">
            {{csrf_field()}}
            {{ method_field('DELETE') }}
            <button type="submit" class="btn btn-danger">删除</button>
        </form>
    </div>
    </div>
@endforeach    
 <div id="pagex">
{!! $data->render() !!}
</div>
 @endsection   
 <stript  type="text/javascript" src="jquery-1.8.2.min.js">

 </stript>
 




